package com.dy;

import net.polyv.live.v2.entity.channel.operate.LiveChannelV2Request;
import net.polyv.live.v2.entity.channel.operate.LiveChannelV2Response;
import com.alibaba.fastjson.JSON;
import lombok.extern.slf4j.Slf4j;
import net.polyv.common.v1.exception.PloyvSdkException;
import net.polyv.live.v1.config.LiveGlobalConfig;
import net.polyv.live.v1.service.channel.impl.LiveChannelOperateServiceImpl;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;



@Slf4j
@SpringBootApplication
@EnableDiscoveryClient
@MapperScan("com.dy.mapper")
public class BeaginLive {
    public static void main(String[] args) {
        String userId = "46a0555083";
        String appId = "h25m96k5li";
        String appSecret = "fff8cbb139794d6d8edf630bfcc76d66";
        LiveGlobalConfig.init(appId,userId,appSecret);
        log.debug("--初始化完成--");
        SpringApplication.run(BeaginLive.class, args);
    }
}

